// 用户模块 路径
import Home from "@/view/home.vue"
import { RouteRecordRaw } from "vue-router"

const userRouter: RouteRecordRaw = // 用户管理
{
  path: '/user',
  redirect: '/user/manger',
  name: 'User',
  component: Home,
  meta: {
    title: 'menus.wUserManger',
    affix: true,
    permission: "system:user",
    icon: 'UserFilled',
  },
  children: [
    {
      path: 'manger',
      name: "UserManger",
      component: () => import("@/view/children/user/index.vue"),
      meta: {
        title: 'menus.wUserManger',
        icon: 'UserFilled',
        permission: "system:user",
      }
    }
  ]
}

export default userRouter